#include "Shell.h"
using namespace std;


Shell::Shell()
{

	string file = "";
	mainRun();
}
#include "Shell.h"
using namespace std;


Shell::Shell()
{

	string file = "";
	mainRun();
}

Shell::~Shell()
{
}

void Shell::mainRun()
{
//	string arg = new string();
	while (true){
		printf("your wish is my command>>");

		break;
	}
}


Shell::~Shell()
{
}

void Shell::mainRun()
{
	string arg = "";
	int choice;
	while (true){
		printf("your wish is my command>>");
		printf("===============================");
		printf("please select on of the options below");
		printf("1. create net");
		printf("2. Start");
		printf("3. KillNode");
		printf("4. ReviveNode");
		printf("5. Killall");
		printf("6. PrintRT");
		printf("7. SendPackket");
		printf("8. Run");
		printf("9. Exit");

		cin >> choice;

		switch (choice) {
			case 1: //createnet
				cout << "enter file name" <<endl;
				getline(cin,arg);
				cout << " file name is " <<arg<<endl;
				break;
			case 2: //Start
				cout << "START" <<endl;
				break;
			case 3: //KillNode

				break;
			case 4: //ReviveNode

				break;
			case 5: //Killall

				break;
			case 6: //PrintRT

				break;
			case 7: //SendPackket

				break;
			case 8: //Run

				break;
			case 9: //Exit

				break;

			default:
				cout<< "please select a number between 1 and 9"<<endl;
				break;
		}


		break;
	}
}



